import {RouteRecordRaw} from 'vue-router'

export const defaultRouter: Array<RouteRecordRaw> = [
    {path: '/:catchall(.*)', redirect: '/404'},
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/index.vue'),
        meta: {
            title: '登录',
            keepAlive: false,
            index: 3,
            transition: {
                enable: true,
                name: 'van-fade'
            }
        }
    },
    {
        path: '/system',
        name: 'system',
        component: () => import('@/views/system/index.vue'),
        meta: {
            title: '系统信息',
            keepAlive: false,
            index: 3,
            transition: {
                enable: true,
                name: 'van-fade'
            }
        }
    },
    {
        path: '/404',
        name: '404',
        component: () => import('@/views/404/index.vue'),
        meta: {
            title: '404',
            keepAlive: false,
            index: 1,
            transition: {
                enable: true,
                name: 'van-fade'
            }
        }
    },
    {
        path: '/',
        name: 'index',
        component: () => import('@/views/index/index.vue'),
        meta: {
            title: '首页',
            keepAlive: false,
            index: 1,
            transition: {
                enable: true,
                name: 'van-fade'
            }
        }
    },
    {
        path: '/system/index',
        name: 'system',
        component: () => import('@/views/system/index.vue'),
        meta: {
            title: '系统配置',
            keepAlive: false,
            transition: {
                enable: true,
                name: 'van-fade'
            },
        }
    }
]
